package cn.tedu._01mvcboot01.controller;

import cn.tedu._01mvcboot01.pojo.dto.addcar;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class car
{
//    @RequestMapping("/v1/car/add1")
//    @ResponseBody
//    public String getCar(String brand,String license,Double price)
//    {   System.out.println("牌子："+brand+"  车牌："+license+"  价格"+price);
//        return "over";
//    }

    @RequestMapping("/v1/car/add2")
    @ResponseBody
    public String getCar(addcar add)
    {
        return add.toString();
    }
}
